package run.microservice.stock.framework;


import com.mybatisflex.core.BaseMapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import org.springframework.util.Assert;

/**
 * DAO数据访问层基础实现类
 * @author Lundy
 */
public class BaseDAOImpl<M extends BaseMapper<T>,T> extends ServiceImpl<M,T> {

    protected void deleteById(Long id){
        Assert.notNull(id,"编号不能为空");
        super.removeById(id);
    }

}
